import BaseLayout from '../../layouts/BaseLayout.vue';
import Login from '../../views/login/index.vue';


export default [
  {
    path: '/',
    redirect: '/htcls/index'
  },
  {
    path: '/login',
    component: Login,
    meta: { title: '登录页面' },
  },
    {
    path: '/error',
    component: BaseLayout,
    meta: { title: '错误页面' },
    children: [
      {
        path: '/error/401',
        component: () => import('../../views/error/401.vue'),
        meta: { title: '401' },
      },
      {
        path: '/error/403',
        component: () => import('../../views/error/403.vue'),
        meta: { title: '403' },
      },
      {
        path: '/error/404',
        component: () => import('../../views/error/404.vue'),
        meta: { title: '404' },
      },
      {
        path: '/error/500',
        component: () => import('../../views/error/500.vue'),
        meta: { title: '500' },
      }
    ]
  } , {
    path: '/enrollee',
    component: BaseLayout,
    meta: { title: '个人中心' },
    children: [
      {
        path: '/enrollee/profile',
        component: () => import('../../views/enrollee/profile/index.vue'),
        meta: { title: '我的资料', requireAuth: true },
      },
      {
        path: '/enrollee/message',
        component: () => import('../../views/enrollee/message/index.vue'),
        meta: { title: '我的消息', requireAuth: true },
      },

    ]
  },


  {
    path: '/ht',
    component: BaseLayout,
    meta: { title: '后台管理' },
    children: [
      {
        path: '/htcls/index',
        component: () => import('../../views/htcls/index.vue'),
        meta: { title: '类型管理', requireAuth: true },
      } ,
      {
        path: '/htctl/index',
        component: () => import('../../views/htctl/index.vue'),
        meta: { title: 'Ctl管理', requireAuth: true },
      } 
      ,
      {
        path: '/htaction/index',
        component: () => import('../../views/htaction/index.vue'),
        meta: { title: 'API管理', requireAuth: true },
      } 
      ,
      {
        path: '/htpage/index',
        component: () => import('../../views/htpage/index.vue'),
        meta: { title: '功能菜单', requireAuth: true },
      }  
      ,
      {
        path: '/htcodelog/index',
        component: () => import('../../views/htcodelog/index.vue'),
        meta: { title: '开发日志', requireAuth: true },
      } 
      ,
      {
        path: '/htactionlog/index',
        component: () => import('../../views/htactionlog/index.vue'),
        meta: { title: '操作日志', requireAuth: true },
      } 
      ,
      {
        path: '/hterror/index',
        component: () => import('../../views/hterror/index.vue'),
        meta: { title: '异常日志', requireAuth: true },
      } ,
      {
        path: '/htmenu/index',
        component: () => import('../../views/htmenu/index.vue'),
        meta: { title: '菜单管理', requireAuth: true },
      } ,
      {
        path: '/htrole/index',
        component: () => import('../../views/htrole/index.vue'),
        meta: { title: '角色管理', requireAuth: true },
      } ,
      {
        path: '/htuser/index',
        component: () => import('../../views/htuser/index.vue'),
        meta: { title: '用户管理', requireAuth: true },
      } 
      ,
      {
        path: '/htuserlogin/index',
        component: () => import('../../views/htuserlogin/index.vue'),
        meta: { title: '在线用户', requireAuth: true },
      } 
      ,
      {
        path: '/htsoft/index',
        component: () => import('../../views/htsoft/index.vue'),
        meta: { title: '软件监控', requireAuth: true },
      } 
      ,
      {
        path: '/htsql/index',
        component: () => import('../../views/htsql/index.vue'),
        meta: { title: 'Sql维护', requireAuth: true },
      } 
      ,
      {
        path: '/httask/index',
        component: () => import('../../views/httask/index.vue'),
        meta: { title: '任务管理', requireAuth: true },
      } 
    ]
  }
]
